package com.lantu.draw.framework;

import java.util.HashMap;

import com.opensymphony.xwork2.ActionSupport;

public class ErrorPermissionJSON extends ActionSupport{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private HashMap<String,Object> dataMap=new HashMap<String, Object>();  
      
    public String noPermission(){  
        dataMap.clear();  
        dataMap.put("desc", "您的权限不够！");
        dataMap.put("code","0");
        return "success";  
    }  
      
    public String noLogin(){  
    	dataMap.clear();  
        dataMap.put("desc", "您还没有登录，请登录！");
        dataMap.put("code","0"); 
        return "success";  
    }  
      
   
    public HashMap<String, Object> getDataMap() {  
        return dataMap;  
    }  
    public void setDataMap(HashMap<String, Object> dataMap) {  
        this.dataMap = dataMap;  
    }  
}
